
import { createBrowserRouter } from "react-router-dom";
import Main from "../pages/main";
import Home from "../pages/home/home";
import User from "../pages/user";
import Mall from "../pages/mall";
import PageOne from "../pages/other/pageOne";
import PageTwo from "../pages/other/pageTwo";
const routes = [
  {
    path:'/',
    Component:Main,
    children:[{


      path: 'home',
      Component: Home
    },
      {


        path: 'mall',
        Component: Mall
      },
      {


        path: 'user',
        Component: User
      },
      {


        path: 'other',
        children:[
          {
            path:'pageone',
            Component: PageOne
          },
          {
            path:'pagetwo',
            Component: PageTwo
          }
        ]

      },


    ]
  }
]
export default createBrowserRouter(routes)

